package com.systemframework.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systemframework.sys.dto.response.SysDeptResponseDTO;
import com.systemframework.sys.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author summer
 * @date 2023-03-21 9:29
 */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    /**
     * 递归查询
     * @return
     */
    List<SysDeptResponseDTO> childrenDeptLists(@Param("searchName") String searchName);
}
